package hotel.meituan.oversea.biz.mapper;

import hotel.base.oversea.repository.MyMapper;
import hotel.meituan.oversea.api.dto.MtHotelOrderBookingDealingDto;
import hotel.meituan.oversea.api.entity.MtHotelOrderBooking;
import hotel.meituan.oversea.api.vo.SysCommonBase;

import java.util.List;
import java.util.Map;

/**
 * 美团酒店-订单下单
 * @Author qiuyy
 * @Date 2020/5/19
 **/
public interface MtHotelOrderBookingMapper extends MyMapper<MtHotelOrderBooking> {
    List<MtHotelOrderBookingDealingDto> getPageHotelOrderDealing(Map<String, String> map);
    MtHotelOrderBooking selectOneDisOrderIdForUpdate(Map map);

    List<String> getPageHotelOrderDealingForReminder();

    void updateRemain(Map map);

    List<SysCommonBase> queryCommonBaseByGroupHead(Map queryMap);

    List<MtHotelOrderBooking> getBookingChildOrderByMasterOrderId(Map map);
    /**
     * 获取拆单数据
     * @param map
     * @return
     */
    List<Map<String, String>> getBookingOrderBySwOrderId(Map map);
}
